package com.rmb.controller;

import com.rmb.mart.entity.workbench.RecordTwo;
import com.rmb.service.RecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


import java.util.Map;

/**
 * @ClassName RecordController
 * @Description 接口调用趋势图
 * @Author lvshook
 * @Date 2021/1/22 8:34
 * @Version 1.0
 **/
@RestController
@RequestMapping("/rmb/record")
public class RecordController {

    @Autowired
    private RecordService recordService;

    /**
     * 接口调用趋势图
     * @param recordTwo
     * @return
     */
    @PostMapping("/getRecord")
    public Map getRecord(@RequestBody RecordTwo recordTwo){
        return recordService.getRecord(recordTwo);
    }

}
